<?php
$state=$_GET['state'];
$code=$_GET['code'];
header("location: ".$state."/code=".$code);
exit;